<div id="m_cmt_list" class="m_cmt_list">
	<#if comments?exists><#list comments as comment>
	<div id="m_cmt_${comment.id}" class="m_cmt_item">
		<div class="m_cmt_face">
			<a href="${base}/u/${comment.author.name}" target="_blank">
				<img src="${base}/uploads/${comment.author.smallAvatar}" onerror="MCMT.noUface(this, '${base}/images/mcmt/duface.png');">
			</a>
		</div>
		<div class="m_cmt_main">
			<div class="m_cmt_uname">
				<a id="m_cmt_uname_${comment.id}" href="${base}/u/${comment.author.name}" target="_blank">${comment.author.alias}</a>
			</div>
			<div class="m_cmt_txt">${comment.content}</div>
			<div class="m_cmt_exp">
				<div class="m_cmt_date">${comment.createTime}</div>
				<a class="m_cmt_rpy_img" onclick="MCMT.addRpy(${comment.id});"></a>
				<a class="m_cmt_rpy_txt" id="m_exp_rpy_${comment.id}" onclick="MCMT.addRpy(${comment.id});">回复</a>
				<div style="clear: both;"></div>
			</div>
		</div>
		<div style="clear: both;"></div>
	</div>
	</#list></#if>
</div>
<div class="m_cmt_page">
	<#if (totalPage > 1)>
		<div class="m_cmt_page">
			<#if (pageNo>1)>
			    <a href="javascript:MCMT.loadList(${pageNo - 1});" class="m_cmt_page-cell">上一页</a>
			</#if>
			<#--如果前面页数过多,显示"..."-->
			<#if (pageNo > 5)>
			    <#assign prevPages = pageNo - 9>
			    <#if (prevPages < 1)>
			    	<#assign prevPages=1>
			    </#if>
			    <#assign start=pageNo - 4>
			    <a href="javascript:MCMT.loadList(${prevPages});" class="m_cmt_page-cell">…</a>
			<#else>
			    <#assign start = 1>
			</#if>
			
			<#-- 显示当前页附近的页-->
			<#assign end = pageNo + 4>
			<#if (end > totalPage)>
				<#assign end = totalPage>
			</#if>
			<#list start..end as p>
				<a href="javascript:MCMT.loadList(${p});" class="m_cmt_page-cell <#if p == pageNo>m_cmt_page-cell-current</#if>">${p}</a>
			</#list>
			
			
			<#--如果后面页数过多,显示"...":-->
			<#if (end < totalPage)>
				<#assign end=end+5>
				<#if (end>totalPage)>
					<#assign end=totalPage>
				</#if>
				<a href="javascript:MCMT.loadList(${end});" class="m_cmt_page-cell">…</a>
			</#if>
			
			<#-- 显示"下一页":-->
			<#if (pageNo < totalPage)>
				<a href="javascript:MCMT.loadList(${pageNo + 1});" class="m_cmt_page-cell">下一页</a>
			</#if>
		</div>
	</#if>
</div>